package com.bestow.basic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bestow.common.annotation.Excel;
import com.bestow.common.core.domain.BaseEntity;

/**
 * 编码规则对象 fnd_coding_rules
 * 
 * @author liliu
 * @date 2022-09-03
 */
public class FndCodingRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码规则ID */
    private Long codingRuleId;

    /** 公司ID */
    @Excel(name = "公司ID")
    private Long companyId;

    /** 编码规则代码 */
    @Excel(name = "编码规则代码")
    private String codingRuleCode;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 重置频率（syscode：FND.CODING_RULE_RESET_FREQUENCY） */
    @Excel(name = "重置频率", readConverterExp = "s=yscode：FND.CODING_RULE_RESET_FREQUENCY")
    private String resetFrequence;

    /** 单据类别 */
    @Excel(name = "单据类别")
    private String documentCategory;

    /** 启用标志 */
    @Excel(name = "启用标志")
    private String enabledFlag;

    public void setCodingRuleId(Long codingRuleId) 
    {
        this.codingRuleId = codingRuleId;
    }

    public Long getCodingRuleId() 
    {
        return codingRuleId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setCodingRuleCode(String codingRuleCode) 
    {
        this.codingRuleCode = codingRuleCode;
    }

    public String getCodingRuleCode() 
    {
        return codingRuleCode;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setResetFrequence(String resetFrequence) 
    {
        this.resetFrequence = resetFrequence;
    }

    public String getResetFrequence() 
    {
        return resetFrequence;
    }
    public void setDocumentCategory(String documentCategory) 
    {
        this.documentCategory = documentCategory;
    }

    public String getDocumentCategory() 
    {
        return documentCategory;
    }
    public void setEnabledFlag(String enabledFlag) 
    {
        this.enabledFlag = enabledFlag;
    }

    public String getEnabledFlag() 
    {
        return enabledFlag;
    }

    private String documentCategoryN;

    public String getDocumentCategoryN() {
        return documentCategoryN;
    }

    public void setDocumentCategoryN(String documentCategoryN) {
        this.documentCategoryN = documentCategoryN;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("codingRuleId", getCodingRuleId())
            .append("companyId", getCompanyId())
            .append("codingRuleCode", getCodingRuleCode())
            .append("description", getDescription())
            .append("resetFrequence", getResetFrequence())
            .append("documentCategory", getDocumentCategory())
            .append("enabledFlag", getEnabledFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("documentCategoryN", getDocumentCategoryN())
            .toString();
    }
}
